const { defineConfig } = require('@vue/cli-service');
const dayjs = require('dayjs');
const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');

console.log('aaa', process.env.SENTRY_AUTH_TOKEN);
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    client: {
      overlay: false,
    },
  },
  configureWebpack: {
    devtool: 'source-map',
    plugins: [
      sentryWebpackPlugin({
        org: 'sentry',
        project: 'vue-project1',
        authToken: process.env.SENTRY_AUTH_TOKEN,
        baseSentryURL: '192.168.1.4:9000',
        release: `sentry@${dayjs(new Date()).format('YYYY-MM-DD HH-mm')}`,
      }),
    ],
  },
});
